package eli.turchinsky.software.agame.enteties;

import eli.turchinsky.software.agame.R;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;

public class Star extends GameEntety{
	private Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
	public Star(Resources resources) {
		super(200,200,48,48,resources);
		Bitmap bMap = BitmapFactory.decodeResource(resources,R.drawable.ic_launcher);
		_sprite.Initialize(bMap, (int)_width,(int) _height, 5, 1);
	}
	@Override
	public void draw(Canvas canvas){
		paint.setStyle(Paint.Style.FILL);
		paint.setColor(Color.parseColor("#FF0000"));
		canvas.drawCircle(getCenterPos().getX(),getCenterPos().getY(),_width/2,  paint);
	}

}
